/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package newpackage;

/**
 *
 * @author user
 */

import java.io.File;
import org.apache.commons.io.FileUtils;

public class compareFileContent 
{
    public static boolean compare(String file1,String file2) throws Exception 
        {
                /* Get the files to be compared first */
                File File1= new File(file1);
                File File2= new File(file2);
        
                boolean compareResult = FileUtils.contentEquals(File1,File2);
               //System.out.println("Are the files are same? " + compareResult);
                
                return compareResult;
                
        }
}